<?php


namespace app\model;


use app\model\common\CommonModel;

class inboundModel extends CommonModel
{
    protected $name = 'inbound';

    public function inboundType()
    {
        return $this->belongsTo(dictionaryModel::class, 'inboundType_id');
    }

    public function bigCate()
    {
        return $this->belongsTo(dictionaryModel::class, 'bigCate');
    }

    public function smallCate()
    {
        return $this->belongsTo(categoryModel::class, 'smallCate');
    }
}